Common O m cmd commands and O M cmd commands
@ Echo offset PortNum = 3306for/f "tokens = 15" % a in ('ipconfig ^ | findstr/I/c: "IP Address "') do (set IP = % a) for/f "tokens = 5" % a in ('netstat-ano ^ | findstr "% IP %: % PortNum % "') do (set PID = % a) echo Port Number % PortNum % the corresponding PID is: %
# Restart every 30 minuteswhile true; do timeout 30m ./script.sh; done23. Merging rows from two sorted filescomm file1 file2Print these three columns:
Line file1 Exclusive.
Line file2 Exclusive.
file1both in line and row file2 .
-1 -2 -3 You can delete these columns by using options,.24. Split long files in a file, using the same number of rows-l LINES -d file.txt output_prefix25. Refresh the Swap partitionIf a program consumes too much memory, the swap partition is filled
script. This is about DOS batching.Batch processing is a simplified scripting language that is used in DOS and Windows systems, and is interpreted by a DOS or Windows system-embedded command interpreter (usually Command.com or CMD.EXE). Similar to a shell script in Unix. The simplest example of a batch file with an extension of. bat or. cmd is the various commands that are used to line up the command line.
Introduction to Windows Common CMD commandsWindows
Usually we use a windows that is called CMD, most people may almost never encounter the use of CMD, the Linux operating system has the same type of Bash,os x under the terminal. We often call these three things terminal (terminal) or shell.So what's the effect of these terminal? The simple expression is to
100 cmd commands commonly used under Windows and 100 cmd commands commonly used for common operations
gpedit.msc-– Group Policy2. Sndrec32 ——-Recorder3. Nslookup ——-IP Address Detector is a command-line tool that monitors whether DNS servers in a network can correctly implement domain name resolution. It can be use
ipconfig displaying and modifying TCP/IP settings
MSG sends a message to the user
ARP display, modify the IP address of the local area network-Physical Address mapping list
System Management
At schedule commands and programs to run on a specific date and time
Shutdown immediate or timed shutdown or restart
Tskill End Process
Taskkill End Process (higher than tskill, but no command in version WinXPHome)
Taskli
PHP starts windows applications, executes bat batch processing, and executes cmd commands (exec and system functions). exec Functions
Exec or system can call the cmd command.
Directly run the Code:
Copy codeThe Code is as follows:/** Open the windows Calculator */Exec ('start C: WindowsSystem32calc.exe ');
/** Php generates a windows batch file and then executes
When using a batch file, you can use the following method to hit multiple cmd windows, and execute multiple commands in each window.Start is used to start an applicationCmd/k indicates that the window is not closed after the command after the CMD has finished executing. If you want to close the window after execution is complete, use/C. For more information, plea
Use cmd to enable service COMMANDS IN WINDOWS
CMD Run CommandStart → run → cmd → enter the following command:Gpedit. msc ----- Group Policy sndrec32 ------- RecorderNSLookup ------- IP address detector explorer ------- open Resource ManagerLogoff --------- logout command tsshutdn ---
CMD Run command
Start → run →cmd→ type the following command:
Gpedit.msc-----Group Policy SNDREC32-------Recorder
Nslookup-------IP Address Detector explorer-------Open Explorer
Logoff---------logoff command tsshutdn-------60-second Countdown shutdown command
Lusrmgr.msc----native users and Groups services.msc---Local Service settings
oobe/msoobe/a----Check if XP activates Notepad--------open Notepad
This article mainly introduces how to use PHP to start windows applications, execute bat batch processing, and execute cmd commands (exec and system functions). For more information, see
Exec or system can call the cmd command.
Directly run the code:
The code is as follows:
/** Open the windows calculator */Exec ('Start C: WindowsSystem32calc.exe ');
/** Php g
How PHP launches Windows applications, executes bat batches, executes CMD commands (Exec, system function details), EXEC functions
exec or system can invoke cmd command
Directly on the code:
Copy the Code code as follows:/** Open the Calculator for Windows */EXEC (' Start c:windowssystem32calc.exe ');
/** PHP generates a batch file for Windows, then execute this
Copy and paste commands in CMD and PowerShellIn CMD command line and PowerShell, users who often use command line or PowerShell to copy and paste the text will certainly encounter this situation: it is very easy to paste the text, right-click and choose paste, however, if you want to copy command lines or PowerShell commands
To become a computer master, you must master eight cmd commands.
1. ping
It is a command used to check whether the network is smooth or the network connection speed. As an administrator or hacker living on the network, the ping command is the first DOS command that must be mastered. The principle used is as follows: each machine on the network has a unique IP address. When we send a packet to the target IP
Windows 7 cmd common commands:1. Enter a disk, e.g. D:(with a colon) 2. Display the folder and file of D drive:dir3. Enter a folder on the D drive:CD filename4. Clear the screen:CLS5. View IP configuration: ipconfig [/all]6. ping-n Send request URL----> ping-n 3 www.rui.com7. Check Port condition: Netstat-an8. Exit: exitFor more CMD
See how much memory your PC supports: wmic memphysical get maxcapacity Querying DNS: nslookup a.root-servers.netRouting Line: tracertRun Box Input: msinfo32 (view native details)services.msc (direct access to the list of services)msconfig (Configure boot-up service entry and boot-up system) The following are common DOS commands and run commands:Start with a simple Run command: Shortcut key Win+r (both the Run box and the DOS Black window are availab
any intermediate transfer. It indicates that the two machines are in the same LAN. Usage: tracert IP.
V. net
This command is the most important one in network commands. You must thoroughly understand the usage of each of its sub-commands, because it is too powerful, this is the best intrusion tool that Microsoft provides for us. First, let's take a look at all the sub-
any intermediate transfer. It indicates that the two machines are in the same LAN. Usage: tracert IP.
V. net
This command is the most important one in network commands. You must thoroughly understand the usage of each of its sub-commands, because it is too powerful, this is the best intrusion tool that Microsoft provides for us. First, let's take a look at all the sub-
exit command is not executed, the subsequent call to the ReadToEnd () method will feign death.//Similar symbols are also available in | | The former indicates that the previous command must be successful before the subsequent command is executed, which means that the previous command execution must fail before the subsequent command is executed//gets the output information of the cmd window stringOutput =P.standardoutput.readtoend ();
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.